import 'package:flutter/material.dart';

void main()=>runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    return new MaterialApp(
        home: Scaffold(
          appBar: AppBar(
            title: Text("Flutter Demo"),
          ),
          body: HomeContent(),
        ),
        theme:ThemeData(
          primaryColor: Colors.yellow,
        )
    );
  }

}

class HomeContent extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Center(
      // child: Text(
      //   "hello word",
      //   textDirection: TextDirection.ltr,
      //   style: TextStyle(
      //       fontSize: 40.0,
      //       // color: Colors.blue
      //       color: Color.fromRGBO(255, 234, 123, 55)
      //   ),
      // ),
      child: Container(
        height: 300.0,
        width: 300.0,
        decoration: BoxDecoration(
            color: Colors.yellow,
            border: Border.all(
                color: Colors.blue,
                width: 2.0
            )
        ),
        child: Text(
          "hello word",
          overflow: TextOverflow.ellipsis,
          textAlign: TextAlign.center,
          style: TextStyle(
            fontSize: 16.0,
          ),
        ),
      ),
    );
  }

}

